package com.hopes.bizz.poll.video.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.hopes.bizz.poll.common.constant.enums.PollModDictEnum;
import com.hopes.bizz.poll.common.constant.enums.PollSysDictEnum;
import com.hopes.bizz.poll.video.entity.PollVdVideoEntity;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.SysDictEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;


/**
 * 视频监控管理
 *
 * @author cx
 * @date 2023-09-19 14:16:45
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VdVideo extends PollVdVideoEntity {




    private Date videoBeginTime;
    private Date videoEndTime;

    public String getRegionIdStr() {
        return DictResolver.getItemLabelByValue(PollModDictEnum.region_id, this.getRegionId());
    }
    public String getVideoTypeStr() {
        return DictResolver.getItemLabelByValue(PollSysDictEnum.poll_video_type, this.getVideoType());
    }

    public String getIsUseStr() {
        return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.getIsUse());
    }


    public String getPlayModeStr() {
        return DictResolver.getItemLabelByValue(PollSysDictEnum.poll_play_mode, this.getPlayMode());
    }

    public String getRegionChooseListStr() {
        return DictResolver.getItemLabelByValue(PollModDictEnum.region_id, this.getRegionChooseList());
    }



}
